<template>
  <!--测试 emitRef-->
  <el-input v-model="val" placeholder="测试 emitRef"></el-input>
  ({{val}})
</template>

<script setup lang="ts">
  import emitRef from '../../../../lib/base/ref-emit'

  const props = defineProps<{
    modelValue: string
  }>()

  const emit = defineEmits<{
    (e: 'update:modelValue', value: string): void
  }>()
 
  const val = emitRef(props, emit, 'modelValue')

</script>